#include "Base.h"
#include "MWProtocol.h"

BOOL MWUserSignupMsg::Read( CSocketStream& iStream )
{
	iStream.Read((char*)&m_dwUserId, sizeof(m_dwUserId));
	iStream.Read((char*)&m_dwProductId, sizeof(m_dwProductId));
	iStream.Read((char*)&m_tmMatchStartTime, sizeof(m_tmMatchStartTime));
	iStream.Read((char*)&m_bSignup, sizeof(m_bSignup));
	return TRUE;
}

BOOL MWUserSignupMsg::Write( CSocketStream& oStream ) const
{
	oStream.Write((char*)&m_dwUserId, sizeof(m_dwUserId));
	oStream.Write((char*)&m_dwProductId, sizeof(m_dwProductId));
	oStream.Write((char*)&m_tmMatchStartTime, sizeof(m_tmMatchStartTime));
	oStream.Write((char*)&m_bSignup, sizeof(m_bSignup));
	return TRUE;
}
